/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ecommerce.service;

import ecommerce.model.Book;
import ecommerce.model.Category;
import ecommerce.model.Customer;
import ecommerce.model.Item;
import ecommerce.model.Order;
import ecommerce.model.Payment;
import java.util.List;

/**
 *
 * @author Hadi
 */
public interface EcommerceService {
 public void save(Book c);
    public void delete(Book c);
    public Book getBook(Long id);
    public Item getItem(Long id);
    public Customer getCustomer(Long id);
    public Order getOrder(Long id);
    public Payment getPayment(Long id);
    public List<Book> getBooks();

    public void save(Category c);

    public void save(Item item);
    public void save(Order order);
    public void save(Customer customer);
    public void save(Payment p);
    
}
